package com.type;

import java.io.DataOutputStream;
import java.io.IOException;

public class Comment {
	String textComment;
	Photo photoComment;
	
	public Comment(String textComment, Photo photoComment) {
		this.textComment = textComment;
		this.photoComment = photoComment;
	}

	public void send(DataOutputStream dos) throws IOException, InterruptedException {
		dos.writeUTF(textComment);
		photoComment.send(dos);
	}
}
